﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hardcodet.Wpf.GenericTreeView;
using SkeletalAnimation3D;
using SkeletalAnimation3D.Core;

namespace Animator3D.Controls
{
    public class SkeletonTreeView : TreeViewBase<Bone>
    {
        public override string GetItemKey(Bone item)
        {
            return item.Id.ToString();
        }

        public override ICollection<Bone> GetChildItems(Bone parent)
        {
            return parent.ChildBones;
        }

        public override Bone GetParentItem(Bone item)
        {
            return item.Parent;
        }
    }
}
